'use strict'

const mongoose = require('mongoose')

const { Schema } = mongoose

module.exports = mongoose.model('Feedback', new Schema({
  phoneNumber: String, // 客户手机
  content: String, // 反馈内容
  emotion: {_id: Schema.Types.ObjectId, name: String}, // 反馈情绪 -> FeedbackEmotion
  manager: [{_id: Schema.Types.ObjectId, name: String}], // 负责人 -> Manager
  createdAt: {type: Date, default: Date.now}, // 数据创建时间
}))